//
//  RKColor.swift
//  RKTemplate
//
//  Created by zhaoke on 2023/7/23.
//

import Foundation
import UIKit

/** #FAFAFA */
let r_bgColor = UIColor(hex: "#FAFAFA")
/** #E63740 */
let r_primaryColor = UIColor(hex: "#E63740")
/** #F5F5F5 */
let r_dividerColor = UIColor(hex: "#F5F5F5")
/** #2E7A4D */
let r_hightGreenColor = UIColor(hex: "#2E7A4D")
/** #9BE6BF */
let r_disableGreenColor = UIColor(hex: "#9BE6BF")
/** #333333 */
let r_normalColor = UIColor(hex: "#333333")
/** #666666 */
let r_contentColor = UIColor(hex: "#666666")
/** #999999 */
let r_descriptionColor = UIColor(hex: "#999999")
/** #C9C9C9 */
let r_lightTextColor = UIColor(hex: "#C9C9C9")
/** #388FF4 */
let r_blueColor = UIColor(hex: "#388FF4")
/** #E76A1A */
let r_orangeColor = UIColor(hex: "#E76A1A")
/** #FF3931 */
let r_redColor = UIColor(hex: "#FF3931")
/** #FFB31A */
let r_yellowColor = UIColor(hex: "#FFB31A")

//
func RKColor(r:CGFloat, g:CGFloat, b:CGFloat, a:CGFloat) -> UIColor {
    return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: a)
}
func RKColor(r:CGFloat, g:CGFloat, b:CGFloat) -> UIColor {
    return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1)
}
